package com.teamF.mockdata;

public class ThreadDemo implements Runnable{
    private String paraId;
    private BridgeData bridgeData;

    public ThreadDemo(String paraId){
        bridgeData = new BridgeData();
        this.paraId = paraId;
    }

    @Override
    public void run() {

        System.out.println(paraId+"传来数据");
        try {
            bridgeData.generateDataAndSend(paraId);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
